export function query2search(data: Record<string, any>) {
  const arr = [];
  for (const d in data) {
    const name = encodeURIComponent(d);
    const value = encodeURIComponent(data[d]);

    arr.push(name + '=' + value);
  }
  return arr.join('&');
}
